//
//  ViewController.m
//  delegate 能不能perform selector 从而对非代理方delegate 对非代理方法是否能使用
//
//  Created by 袁飞霞 on 16/5/12.
//  Copyright © 2016年 cn.sophietobeabetterone. All rights reserved.
//

#import "ViewController.h"
#import "Person.h"

@interface ViewController ()<PersonDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    Person *p1 = [[Person alloc]init];
    p1.delegate = self;
    [p1 eat];
    
}

-(void)notDelegateMethod
{
NSLog(@"%s", __FUNCTION__);

}
-(void)delegateMethod
{
NSLog(@"%s", __FUNCTION__);
    
}



@end
